/*
 * Created on 2004-01-08
 */
package org.opencube.oms;

import info.fingo.util.EnclosingException;

/*
 * Created on 2004-01-28
 */

/**
 * @author <a href="mailto:maciek@fingo.pl">FINGO - Maciej Mroczko</a>
 * TODO: comment
 */
public class OMSResourceException extends EnclosingException
{
	/**
	 * TODO: comment
	 */
	private static final long serialVersionUID = -349171016992347260L;

	/**
	 * The code constant: other = 0
	 */
	public static final int CODE_OTHER = 0;

	/**
	 * The code constant: file not found = 10
	 */
	public static final int CODE_FILE_NOT_FOUND = 10;

	/**
	 * The code constant: I/O problem  = 20
	 */
	public static final int CODE_IO = 20;

	/**
	 * 
	 */
	public OMSResourceException()
	{
		super();
	}

	/**
	 * @param message
	 */
	public OMSResourceException( String message )
	{
		super( message );
	}

	/**
	 * @param code
	 */
	public OMSResourceException( int code )
	{
		super( code );
	}

	/**
	 * @param message
	 * @param code
	 * @param nestedException
	 */
	public OMSResourceException( String message, int code, Exception nestedException )
	{
		super( message, code, nestedException );
	}

	/**
	 * @param code
	 * @param nestedException
	 */
	public OMSResourceException( int code, Exception nestedException )
	{
		super( code, nestedException );
	}
	
	/**
	 * @param nestedException
	 */
	public OMSResourceException( Exception nestedException )
	{
		super( nestedException );
	}

	/**
	 * @param message
	 * @param code
	 */
	public OMSResourceException( String message, int code )
	{
		super( message, code );
	}
	
	/**
	 * @param message
	 * @param nestedException
	 */
	public OMSResourceException( String message, Exception nestedException )
	{
		super( message, nestedException );
	}

}
